# DCluster interfacing


def name():
  return "DCluster Plugin"

def description():
  return "Implement R's DCluster methods"

def version():
  return "Version 0.01"

def classFactory(iface):
  from dcluster import DClusterPlugin
  return DClusterPlugin(iface)

def requirements():
  reqs = {
    'qgis': ['>=0.9.0','<0.11.0'] ,
    'qgis-plugins': [],
    'python': '>=2.3.0',
    'python-packages': ['rpy'],
    'rpy-r': '>=2.4.0',
    'r-packages': ['DCluster'],
    'other': otherRequirements,
    }
  return reqs

def otherRequirements(test=False):
  status=(None,None)
  if test:
    import os
    status=(False,'OS not valid')
    if os.name=="nt" or os.name=="posix":
      status=(True,'OS is valid')
  return ('OS is nt or posix',status)
